package org.peoplesearch.vk.processor;


import org.peoplesearch.conf.VKConf;
import org.peoplesearch.vk.api.androidvksdk.Auth;


import java.util.ArrayList;
import java.util.List;

public class Credentials {

    public class VKAuthCredential {
        public String applicationId;
        public Long userId;
        public String token;
        public String settings;
        public String userName;

        public VKAuthCredential(String app, Long userId, String token, String settings, String userName) {
            this.applicationId = app;
            this.userId = userId;
            this.token = token;
            this.userName = userName;
            this.settings = settings;
        }
    }

    private final List<VKAuthCredential> credentials = new ArrayList<VKAuthCredential>();

    public Credentials() {
        credentials.add(new VKAuthCredential("3041015", 7359953L, "1f07e7d21f77aa031f77aa03bb1f59ccf411f771f7896fdcf8b1e733103c292", Auth.getSettings(), "Egor Pahomov"));
        credentials.add(new VKAuthCredential("3087543", 7359953L,"07dba42507abe9f407abe9f4470784f543007ab7814160a908d795f8a3939d2", Auth.getSettings(), "Egor Pahomov"));
        credentials.add(new VKAuthCredential("3087568", 7359953L,"3edf6b683eaf26b93eaf26b9b33e803a6933eaf4110d947209271542e8521c8", Auth.getSettings(), "Egor Pahomov"));
        credentials.add(new VKAuthCredential("3087572", 7359953L,"d6e467bbd6942a6ad6942a6a38d6bb36bedd694a92bd594b8f8e5f07aba13da", Auth.getSettings(), "Egor Pahomov"));
        credentials.add(new VKAuthCredential("3087574", 7359953L,"c16a8b08c11ac6d9c11ac6d94ec135da0fcc11abea5392763f67ba9261c35bd", Auth.getSettings(), "Egor Pahomov"));
        credentials.add(new VKAuthCredential("3087575", 7359953L,"2297d76222e79ab322e79ab35422c88664222e75d58654d2905cb2f419d6950", Auth.getSettings(), "Egor Pahomov"));
        credentials.add(new VKAuthCredential("3087577", 7359953L,"66c19bae66b1d67f66b1d67f0f669ecaa6666b1190e29815c2769faa941b18d", Auth.getSettings(), "Egor Pahomov"));
        credentials.add(new VKAuthCredential("3087579", 7359953L,"7b34a4bb7b44e96a7b44e96a9f7b6bf5b177b4404fb1694daf8f343e636994c", Auth.getSettings(), "Egor Pahomov"));
        credentials.add(new VKAuthCredential("3087581", 7359953L,"bb3289b9bb42c468bb42c468f3bb6dd8b5bbb42c4fd3b96271646cd9bcb45dc", Auth.getSettings(), "Egor Pahomov"));
        credentials.add(new VKAuthCredential("3087583", 7359953L,"50bea0ca50ceed1b50ceed1bb750e1f1c4550ce2f7112e50772458053636ef9", Auth.getSettings(), "Egor Pahomov"));
        credentials.add(new VKAuthCredential("3087584", 7359953L,"300d5eb9307d1368307d13680830520f883307d4fc2ec96044c4c9cbad27451", Auth.getSettings(), "Egor Pahomov"));
        credentials.add(new VKAuthCredential("3087589", 7359953L,"e9891930e9f954e1e9f954e151e9d64804ee9f99646ab1f9cd99d5e1daa2b9d", Auth.getSettings(), "Egor Pahomov"));
        credentials.add(new VKAuthCredential("3087590", 7359953L,"26d5950b26a5d8da26a5d8da0c268ac43c226a5591a2724921f1e47099138dd", Auth.getSettings(), "Egor Pahomov"));
        credentials.add(new VKAuthCredential("3087593", 7359953L,"11403dfb1130702a1130702a4c111f6cc3111306e8f8fd4dde53460b5f4830c", Auth.getSettings(), "Egor Pahomov"));
        credentials.add(new VKAuthCredential("3087596", 7359953L,"c87b5027c80b1df6c80b1df65cc824011acc80bb7b4e2080b4c0576b325cf45", Auth.getSettings(), "Egor Pahomov"));
    }

    public Credentials(VKConf conf) {
        List<VKConf.VKAuthCredentials> allVkPorts = conf.getAllVkPorts();
        for (VKConf.VKAuthCredentials config : allVkPorts) {
            System.out.println();
        }
    }

    public List<VKAuthCredential> getCredentials() {
        return credentials;
    }

}
